# coding=utf-8
# reduce实现对一个序列求和
from functools import reduce


def add(x, y):
    return x + y


sum = reduce(add, [1, 3, 5, 7, 9])
print(sum)
